<script type="text/javascript">
var error1 = "${error1}";
$(document).ready(function() {
	
	if (error1 != '') {
		$(function() {
			$("#dialog-aviso-jcaptcha").dialog({
				modal : true,
				width : 500,
				heigh : 500,
				buttons : {
					Ok : function() {
						$(this).dialog("close");
						$('input[name=jcaptcha]').focus();
					}
				}
			});
		});
	}
	
    $("#refreshJcaptcha").click(function() {
	       $('#jcaptcha').attr('src', '').attr('src', 'jcaptcha.jpg');
	});
	
});
</script>